<script>
export default {
  name: "Navigation"
}
</script>

<template>
  <el-card>
    <div slot="header" class="clearfix">
      <span>快捷导航栏</span>
    </div>
    <ul class="navigation">
      <li>
        <router-link to="/departments">
          <img src="@/assets/images/dept.png" alt="">
          <span>组织架构</span>
        </router-link>
      </li>
      <li>
        <router-link to="/settings">
          <img src="@/assets/images/role.png" alt="">
          <span>角色管理</span>
        </router-link>
      </li>
      <li>
        <router-link to="/employees">
          <img src="@/assets/images/emp.png" alt="">
          <span>员工管理</span>
        </router-link>
      </li>
      <li>
        <router-link to="/permissions">
          <img src="@/assets/images/per.png" alt="">
          <span>权限管理</span>
        </router-link>
      </li>
    </ul>
  </el-card>
</template>

<style scoped lang="scss">
.navigation {
  display: flex;
  justify-content: space-evenly;

  li {
    display: flex;
    flex-direction: column;

    a {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;

      img {
        width: 60px;
      }

      span {
        font-size: 16px;
        margin-top: 10px;
      }
    }
  }
}
</style>
